import request from "./request"

export const hospitalApi = {
  // 获取医院列表
  getHospitalList: (params) => {
    return request.get("/hospital", { params })
  },

  // 创建医院
  createHospital: (data) => {
    return request.post("/hospital", data)
  },

  // 更新医院
  updateHospital: (id, data) => {
    return request.put(`/hospital/${id}`, data)
  },

  // 删除医院
  deleteHospital: (id) => {
    return request.delete(`/hospital/${id}`)
  },

  // 批量删除医院
  batchDeleteHospitals: (ids) => {
    return request.post("/hospital/batch/delete", ids)
  },
}
